from django import template

register = template.Library()

@register.filter(name='md5_hash')
def md5_hash(value):
    """ Return the md5 hash of the string """
    import hashlib
    value = hashlib.md5(value)
    
    return value.hexdigest()